﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

#nullable disable

namespace Faser_VoteSys.Models.Database
{
    [Index(nameof(ResourceFileName), nameof(ResourceOrder), Name = "UQ__Resource__1E4CD80B8A054C6F", IsUnique = true)]
    [Index(nameof(ResourceFileName), Name = "idx_ResourceGroups_ResourceFileName")]
    public partial class ResourceGroup
    {
        public ResourceGroup()
        {
            CompanyAwards = new HashSet<CompanyAward>();
        }

        [Key]
        [Column("ResourceGroupID")]
        public int ResourceGroupId { get; set; }
        [Required]
        [StringLength(255)]
        public string ResourceFileName { get; set; }
        public int ResourceOrder { get; set; }

        [InverseProperty(nameof(CompanyAward.ResourceGroup))]
        public virtual ICollection<CompanyAward> CompanyAwards { get; set; }
    }
}
